<!DOCTYPE html>
<html ng-app="myApp" ng-controller="editController" ng-init="getFault()">

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title> - 表单向导</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="favicon.ico"> <link href="../css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="../css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="../css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="../css/plugins/steps/jquery.steps.css" rel="stylesheet">
    <link href="../css/animate.css" rel="stylesheet">
    <link href="../css/style.css?v=4.1.0" rel="stylesheet">
    <link href="../css/plugins/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css" rel="stylesheet">

    <link href="../css/plugins/datapicker/datepicker3.css" rel="stylesheet">
</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">

    <div class="row">

        <div class="col-sm-12">
            <div class="ibox">
                <div class="ibox-title">
                    <h5>填写新的机床故障项目</h5>
                    <div class="ibox-tools">
                        <a class="collapse-link">
                            <i class="fa fa-chevron-up"></i>
                        </a>
                        <a class="dropdown-toggle" data-toggle="dropdown" href="form_wizard.html#">
                            <i class="fa fa-wrench"></i>
                        </a>
                        <ul class="dropdown-menu dropdown-user">
                            <li><a href="form_wizard.html#">选项1</a>
                            </li>
                            <li><a href="form_wizard.html#">选项2</a>
                            </li>
                        </ul>
                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>
                <div class="ibox-content">
                    <form  action="form_wizard.html#" class="wizard-big">
                        <h1>基本信息</h1>
                        <fieldset ng-form="part_one">
                            <!--<h2>请填写故障基本信息</h2>-->
                            <div class="row">
                                <div class="col-sm-8">
                                    <div class="form-group">
                                        <label>故障名称 *</label>
                                        <input type="text" class="form-control " ng-model="fault.title" id="title">
                                    </div>
                                    <div class="form-group">
                                        <label>故障编号 *</label>
                                        <input  type="text" class="form-control " ng-model="fault.number" id="number">
                                    </div>
                                    <div class="form-group">
                                        <label>故障机床所在工厂 *</label>
                                        <input type="text" class="form-control " ng-model="fault.factory" id="factory">
                                    </div>

                                    <div class="form-group">
                                        <label>故障机床厂家型号 *</label>
                                        <input   type="text" class="form-control " ng-model="fault.machine_type" id="machine_type">
                                    </div>
                                </div>
                                <div class="col-sm-4">
                                    <div class="text-center">
                                        <div style="margin-top: 20px">
                                            <i class="fa fa-sign-in" style="font-size: 180px;color: #e5e5e5 "></i>
                                        </div>
                                    </div>
                                </div>
                            </div>

                        </fieldset>
                        <hr>

                        <h1>详细信息</h1>
                        <fieldset ng-form="part_two">

                            <div class="row">
                                <div class="col-sm-8">
                                    <div class="form-group">
                                        <label>故障部位 *</label>
                                        <input  type="text" class="form-control " ng-model="fault.location" id="location">
                                    </div>

                                    <div class="form-group">
                                        <label>故障严重等级 *</label>
                                        <!--<input  name="confirm" type="text" class="form-control " ng-model="fault.location">-->
                                        <div class="form-control">
                                            <div class="radio radio-info radio-inline">
                                                <input type="radio" id="inlineRadio1" value="轻微" name="radioInline" checked="" ng-model="fault.level">
                                                <label for="inlineRadio1"> 轻微 </label>
                                            </div>
                                            <div class="radio radio-info radio-inline">
                                                <input type="radio" id="inlineRadio2" value="较为严重" name="radioInline" checked="" ng-model="fault.level">
                                                <label for="inlineRadio2"> 较为严重 </label>
                                            </div>
                                            <div class="radio radio-info radio-inline">
                                                <input type="radio" id="inlineRadio3" value="严重" name="radioInline" checked="" ng-model="fault.level">
                                                <label for="inlineRadio3"> 严重 </label>
                                            </div>
                                            <div class="radio radio-info radio-inline">
                                                <input type="radio" id="inlineRadio4" value="非常严重" name="radioInline" checked="" ng-model="fault.level">
                                                <label for="inlineRadio4"> 非常严重 </label>
                                            </div>

                                        </div>
                                    </div>


                                    <div class="form-group input-group date form_date" id="data_1">
                                        <label class="font-noraml">故障发生时间 *</label>
                                        <div class="input-group date">
                                            <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                            <input type="text" class="form-control" value="2016-11-11" ng-model="fault.occur_date" id="occur_date">
                                        </div>
                                    </div>

                                </div>





                                <div class="col-sm-4">
                                    <div class="text-center">
                                        <div style="margin-top: 20px">
                                            <i class="fa fa-sign-in" style="font-size: 180px;color: #e5e5e5 "></i>
                                        </div>
                                    </div>
                                </div>

                            </div>

                        </fieldset>



                        <hr>
                        <h1>详细描述</h1>
                        <fieldset ng-form="part_three">
                            <div class="form-group">
                                <label>故障详细描述 *</label>
                                <textarea class="form-control " ng-model="fault.description"
                                          cols="20" rows="10" id="description"></textarea>
                            </div>
                        </fieldset>


                        <hr>
                        <h1>维修人员信息</h1>

                        <fieldset ng-form="part_four">
                            <div class="row">
                                <div class="col-sm-6">
                                    <div class="form-group">
                                        <label>姓名 *</label>
                                        <input  type="text" class="form-control required" ng-model="fault.manu_man_name" id="manu_man_name" >
                                    </div>
                                    <div class="form-group">
                                        <label>Email *</label>
                                        <input   type="text" class="form-control  email" id="manu_man_email" ng-model="fault.manu_man_email">
                                    </div>

                                    <div class="form-group">
                                        <label>手机 *</label>
                                        <input   type="text" class="form-control" ng-model="fault.manu_man_tel" id="manu_man_tel">
                                    </div>
                                </div>

                            </div>

                        </fieldset>
                        <hr>
                        <button type="button" id="addFault" class="btn btn-primary" ng-click ="updateFault()" >编辑完成,更新故障</button>
                    </form>
                </div>
            </div>
        </div>

    </div>
</div>



<!-- 全局js -->
<script src="../js/jquery.min.js?v=2.1.4"></script>
<script src="../js/bootstrap.min.js?v=3.3.6"></script>





<!-- Jquery Validate -->
<script src="../js/plugins/validate/jquery.validate.min.js"></script>
<script src="../js/plugins/validate/messages_zh.min.js"></script>


<!-- Data picker -->
<script src="../js/plugins/datapicker/bootstrap-datepicker.js"></script>


<!--angular-->
<script src="//cdn.bootcss.com/angular.js/1.5.8/angular.js"></script>
<script src="//cdn.bootcss.com/angular.js/1.5.8/angular-cookies.js"></script>

<script type="text/javascript" src="../controllers/editController.js"></script>






<script type="text/javascript">

</script>
</body>

</html>
